﻿@model Dyn.News.ViewModels.CategoryArchivesViewModel

@using Dyn.News.Models;
@using Orchard.Core.Routable.Models;
@using Orchard.ContentManagement;

<fieldset>
    <div>
        @Html.LabelFor(m => m.Slug, T("For Category"))
        <select id="@Html.FieldIdFor(m => m.Slug)" name="@Html.FieldNameFor(m => m.Slug)">
		@foreach (NewsCategoryPart cate in Model.Category)
  {
            @Html.SelectOption(Model.Slug, cate.As<RoutePart>().Slug, cate.Name)
		}
		</select>
        <span class="hint">@T("Select which category you want to display the archives for")</span>
    </div>
</fieldset>